home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / airfoil.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  67 lines

  1. Article: 4032 of comp.sys.handhelds 
  2. Path: jpl-devvax!elroy.jpl.nasa.gov!usc!orion.oac.uci.edu!!nelson 
  3. From: (Matt Nelson) 
  4. Subject: Airfoil Plotter for HP48sx 
  5. Summary: draws airfoils of arbitrary size 
  6. Date: 29 Oct 90 
  7. Reply-To: nelson@psroot.ps.uci.edu 
  8. Organization: University of California, Irvine 
  9.  
  10.     This is for all of the R/C model airplane/sailplane enthusiasts out there, 
  11. especially if you are into designing and building.   
  12.  
  13.     Here is the latest version of my airfoil section plotter.  I needed to plot 
  14. some ribs for a glider project, and realized that I had sold my trusty HP-28s. 
  15. I quickly re-wrote my original program to run on the HP-48sx, and came up with 
  16. something MUCH prettier, and MUCH MUCH faster.  This thing is really quite 
  17. painless to use now (the 28s version was slooooow).   
  18.  
  19.     The speedup came from creating a PICT that is big enough to contain the 
  20. entire airfoil section.  The airfoil data is plotted only once, and then sent 
  21. to the printer, one screen at a time, through successive PVIEW and PRLCD 
  22. commands.  BE WARNED...  although this is a very fast way to print out large 
  23. objects, it is also a memory-hungry way to do it; for example, a 10" SD7003 
  24. required a PICT that was 131 by 832.  When I saved this PICT to the stack and 
  25. BYTESed it, it was 14,154 bytes big.  On top of that, just the data for the 
  26. SD7003 (as listed below) is 988.5 bytes long.  All I am saying is that this 
  27. program DOES use a lot of memory, but is very handy, and serves my purposes 
  28. very well; if you don't like it, feel free to use something else.   
  29.  
  30.     To use this program, simply get into the AIRFOIL directory, and hit 
  31. [AIRFOI].  It will ask for an airfoil.  Just hit the menu button corresponding 
  32. to the airfoil data you wish to use (you can hit [SD700] to try it out), then 
  33. [ENTER].  It will then ask for a chord.  Give it a number corresponding to the 
  34. desired chord, in centimeters, then [ENTER].  The program will handle other 
  35. units, and in fact presents you with the UNITS LENG menu, so you can give it a 
  36. chord size in any unit you wish.  Just be sure to give it a valid unit object 
  37. (you have to supply the underscore manually, since the calculator is in program 
  38. entry mode at this point).  You should be greeted by a "working..." message. 
  39. Point the calculator at your 82240A/B printer, and watch the airfoil section 
  40. print out.   
  41.  
  42.     The airfoil data is assumed to be in a complex vector, where each element 
  43. corresponds to a point (x,y) on the airfoil.  The points should be arranged so 
  44. that if you were to draw lines sequentially from one point to the next, you 
  45. would trace out a closed outline of the airfoil section.  The sample airfoil in 
  46. this posting, the SD7003, should help illustrate this.  For those who are 
  47. interested, the SD7003 is an airfoil designed specifically for use at very low 
  48. Reynolds numbers, such as those encountered by model sailplanes.   
  49.  
  50.     There are two parameters which control the absolute size of the printed 
  51. output.  These are the global variables ycmps and xcmps.  These represent the 
  52. number of centimeters per screen OF PRINTED OUTPUT for the y and x directions, 
  53. respectfully.  One arrives at these values by printing a screenfull of 
  54. anything, and measuring the size of the printed output in centimeters.  The 
  55. numbers supplied below are for the 82240A printer; I have never used a 'B' 
  56. version of the printer, and don't know whether these numbers will have to be 
  57. changed in order to work properly with that printer.  The only reason I left 
  58. these numbers as global variables is so that the user could have some control 
  59. over the aspect ratio of the output, without diving into the program itself.   
  60.  
  61.     Please direct any comments/suggestions/questions etc.  to:  
  62.  
  63.      Matt Nelson           internet:  nelson@psroot.ps.uci.edu 
  64.      Physics Dept.         bitnet:    mnelson@uci 
  65.      University of California   phone:     (714) 725-2629 
  66.      Irvine, CA 92717 
  67.